		<div style="width: 100%">
		<table style="width:100%">
		<TR> 
		<TD width="90%" style="background: black;color: white;">
			Explorador de Archivos
		</TD>
		<TD style="background: black;color: white; border-left: 1px solid white"><a href="javascript:cerrarPopUp()"><img src="images/clear.jpg" height="10px"/></a></TD>
		</TR>
		</table>
		<div id="bContent" style="height:350px;overflow:auto; text-align: center;border: 0px solid black;">
		<?PHP
			if(isset($_GET['path'])){
			  $path = $_GET['path'];
			}else{
			  $path="/home/percha/lalo";
			}
		
		   
			if(!is_dir($path))
			{
				echo "<h2>No Path Found!</h2>";
			}
			else
			{
				chdir($path);
				$folder = opendir($path);
				$free = diskfreespace($path);						
				$arr = scandir($path);
				$directory;
				$files;
 				$i=0;
 				$j=0;
				foreach($arr as $value)
				{
					if(is_dir($value))
					{
						$directory[$i] = $value;
						$i++;
					}
					else if(is_file($value))
					{
						$files[$j] = $value;
						$j++;
					}
				}
			   
				echo "<span style='display:block;font-size:13px;font-weight: bold;'> Carpeta Actual : " . realpath($path) . "</span>";
				ksort($directory);			  
				ksort($files);
				echo "<table width='100%'  cellpadding='0' cellspacing='0'>";
				echo "<THEAD style='border-bottom: 1px dotted black'><TH>Carpetas</TH><TH>Archivos</TH></THEAD>";
				echo "<TR height='100%'><TD width='50%'><table width='100%'  cellpadding='0' cellspacing='0'>";
				foreach($directory as $element)
				{
				  if ($element != ".")
				  {
					echo "<TR valign='center' height='30px'>";
				  	echo "<TD  width='15%'><img src='images/folder.gif' /></TD><TD align='left'><a href=\"javascript:actualizaBrowser('$path/$element')\">$element</a></TD>";
					echo "</TR>";
				  }  
				}
			   
				echo "</table></TD>";
				echo "<TD><table width='100%' height='100%' cellpadding='0' cellspacing='0' style='border-left: 1px dotted black'>";
				foreach($files as $elem)
				{
					echo "<TR valign='center' height='30px'>";
					echo "<TD align='center'><a href=\"javascript:seleccionaArchivo('$path/$elem')\">$elem</a></TD>";
					echo "</TR>";
				}	   
				echo "</table></TD></TR></table>";
			}
			closedir($folder);
		?>
		</div>
		</div>
